var helpCenter = {};
helpCenter.menthods = {};

$(function () {
    // 左侧栏切换
    helpCenter.menthods.helpLeftNav();

    // 分页
    var page = new Controller.PageControl();
    page.init({
        totalCount: 2, //总页数
        conter: ".shop-page", //容器选择器
        nowPage: 1, //当前页，默认第几页
        //callback:fun,       //点击回调
        // gotoCallBack:fun    //跳转回调
    });
})

// 左侧栏切换
helpCenter.menthods.helpLeftNav = function () {
    
    $(".shop-helpCenter-left").on("click", ".shop-helpCenter-item", function () {
        var _that = $(this);
        _that.toggleClass("shop-item-cornerTop").siblings().removeClass("shop-item-cornerTop");
        _that.siblings(".shop-helpCenter-item").find("ul").slideUp(300);
        setTimeout(function(){
            _that.find("ul").slideToggle();
        }, 100);
    })
}